package apk.cme.mm.interviewdemo.ui.fragment

import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import apk.cme.mm.interviewdemo.R
import apk.cme.mm.interviewdemo.ui.activity.FragmentDemoActivity
import org.jetbrains.anko.toast

/**
 * Descriptions：
 * <p>
 * Author：ChenME
 * Date：2019/1/23
 * Email：ibelieve1210@163.com
 */
class PlaceholderFragment : Fragment() {

    private lateinit var _activity: FragmentDemoActivity

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        super.onCreateView(inflater, container, savedInstanceState)
        _activity = activity as FragmentDemoActivity
        return inflater.inflate(R.layout.fragment_placeholder, container, false)
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        _activity.toast("")
    }
}